﻿namespace AnyOffice.Model
{
    using System;

    public class CalendarData
    {
        protected int _calId = -1;
        protected int _calType = 1;
        protected string _content = string.Empty;
        protected DateTime _endTime = DateTime.Now;
        protected object _managerId;
        protected DateTime _startTime = DateTime.Now;
        protected string _userId = string.Empty;

        public int CalId
        {
            get
            {
                return this._calId;
            }
            set
            {
                this._calId = value;
            }
        }

        public int CalType
        {
            get
            {
                return this._calType;
            }
            set
            {
                this._calType = value;
            }
        }

        public string Content
        {
            get
            {
                return this._content;
            }
            set
            {
                this._content = value;
            }
        }

        public DateTime EndTime
        {
            get
            {
                return this._endTime;
            }
            set
            {
                this._endTime = value;
            }
        }

        public string ManagerId
        {
            get
            {
                return (string) this._managerId;
            }
            set
            {
                this._managerId = value;
            }
        }

        public bool ManagerIdIsNull
        {
            get
            {
                return (this._managerId == null);
            }
            set
            {
                if (value)
                {
                    this._managerId = null;
                }
            }
        }

        public DateTime StartTime
        {
            get
            {
                return this._startTime;
            }
            set
            {
                this._startTime = value;
            }
        }

        public string UserId
        {
            get
            {
                return this._userId;
            }
            set
            {
                this._userId = value;
            }
        }
    }
}

